home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_c / lsdoor09.zip / EXAMPLE1.CPP < prev    next >
Text File  |  1996-05-15  |  770b  |  25 lines

  1. // Example1.Cpp - Hello World program..
  2.  
  3. #define MainModule
  4. #include "LsDoor.H"
  5.  
  6. char *errorModule( void )               // Give some ID in case there's an
  7. {                                       // error and the sysop checks the
  8.   return "HelloW";                      // logs, this will tell him/her which
  9. }                                       // program had the error.
  10.  
  11. void main( void )
  12. {
  13.   if( !DoorInit( doorsysDISABLE ) ) exit(1);  // Let's get rolling.
  14.   display( "\nHello @GGreen world!" );        // Hello Green world!
  15.   display( "\nThe @RRug @BIs @GGreen!" );     // The Rug Is Green!
  16.   exit(0);                                    // Always use exit()
  17.   // NEVER use return from main(), always exit().
  18. }
  19.  
  20. // End of Example1.Cpp
  21.  
  22.  
  23.  
  24.  
  25.